<?xml version="1.0"?>
<Template originator   = "Lluis Sanchez">
	
	<!-- Template Header -->
	<TemplateConfiguration>
		<_Name>NUnit Library Project</_Name>
		<Category>other/net/general</Category>
		<Icon>md-test-project</Icon>
		<Image id="md-test-project" />
		<_Description>Creates an NUnit library.</_Description>
		<LanguageName>VBNet</LanguageName>
		<DefaultFilename>NUnitProject</DefaultFilename>
		<GroupId>md-nunit-library</GroupId>
	</TemplateConfiguration>
	
	<!-- Actions -->
	<Actions>
		<Open filename = "Test.vb"/>
	</Actions>
	
	<!-- Template Content -->
	<Combine name = "${ProjectName}" directory = ".">
		<Options>
			<StartupProject>${ProjectName}</StartupProject>
		</Options>
		
		<Project name = "${ProjectName}" directory = ".">
			<Options Target = "Library" TargetFrameworkVersion = "4.0" />
			
			<References>
				<Reference type="Package" refto="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
			</References>

			<Packages>
				<Package ID="NUnit" Version="3.12.0" />
			</Packages>

			<Files>
				<CodeDomFile name="Test">
					<CompileUnit>
						<Namespaces>
							<Namespace Name="">
								<Imports>
									<NamespaceImport Namespace="System" />
									<NamespaceImport Namespace="NUnit.Framework" />
								</Imports>
							</Namespace>
							<Namespace Name="${Namespace}">
								<Types>
									<TypeDeclaration Name="${Name}" IsClass="true">
										<CustomAttributes>
											<AttributeDeclaration Name="TestFixture" />
										</CustomAttributes>
										<Members>
											<MemberMethod Attributes="Public, Final" Name="TestCase" ReturnType="System.Void">
												<CustomAttributes>
													<AttributeDeclaration Name="Test" />
												</CustomAttributes>
											</MemberMethod>
										</Members>
									</TypeDeclaration>
								</Types>
							</Namespace>
						</Namespaces>
					</CompileUnit>
				</CodeDomFile>

			</Files>
		</Project>
	</Combine>
</Template>
